package com.example.shiro.dao;

import com.example.shiro.entity.SysPermissionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 菜单权限表 Mapper 接口
 * </p>
 *
 * @author 李宇航
 * @since 2020-06-02
 */
public interface SysPermissionMapper extends BaseMapper<SysPermissionEntity> {
    /**
     *   根据用户查询用户权限
     */
    public List<SysPermissionEntity> queryByUser(@Param("username")String username);

}
